Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YUNIKORN-2366] Update GetPodResources() to handle in-place pod resource updates #770

Closed
wants to merge 1 commit into from

Conversation

craigcondit
Copy link
Contributor

@craigcondit craigcondit commented Jan 26, 2024

What is this PR for?

Implement initial support for the upcoming Kubernetes InPlacePodVerticalScaling feature when doing Pod resource calculations. If present, the allocated resources of each container will be used in preference to the requested resources. Additionally, if the Pod status flag Resize is set to Proposed, use the larger of both requested and allocated for each resource type.

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-2366

How should this be tested?

Added unit tests to cover logic introduced by the upstream K8s feature.

Screenshots (if appropriate)

Questions:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

Copy link

codecov bot commented Jan 26, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (12c3908) 70.94% compared to head (aa83f75) 71.02%.

Files Patch % Lines
pkg/common/resource.go 89.47% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #770      +/-   ##
==========================================
+ Coverage   70.94%   71.02%   +0.07%     
==========================================
  Files          43       43              
  Lines        7652     7686      +34     
==========================================
+ Hits         5429     5459      +30     
- Misses       2021     2024       +3     
- Partials      202      203       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…rce updates

Implement initial support for the upcoming Kubernetes InPlacePodVerticalScaling
feature when doing Pod resource calculations. If present, the allocated
resources of each container will be used in preference to the requested
resources. Additionally, if the Pod status flag Resize is set to Proposed,
use the larger of both requested and allocated for each resource type.
Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@craigcondit craigcondit deleted the YUNIKORN-2366 branch January 29, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants